package com.liruo.learn.spring.mvc.controller.m1handlermapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author:liruo
 * @Date:2023-10-05-19:02:36
 * @Desc
 */
@Controller("/URLBeanNameControllerAnno")
public class URLBeanNameControllerAnno implements org.springframework.web.servlet.mvc.Controller {
  @Override
  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
      throws Exception {
    response.getWriter().write(getClass().getSimpleName());
    return null;
  }
}
